Computer Configuration > Administrative Templates > Firefox
Both
HKLM\Software\Policies\Mozilla\Firefox
If this policy is enabled, Firefox will not try to create different profiles for installations of Firefox in different directories. This is the equivalent of the MOZ_LEGACY_PROFILES environment variable. If this policy is disabled or not configured, Firefox will create a new profile for each unique installation of Firefox.